<!DOCTYPE html>
<html>
<head>
<ytata:tagview listname="show" tag="$_GET['t']"/>
 <include file="public:header" />
 <title>{$show.tag}</title>
 <link rel="stylesheet" href="__PUBLIC__/css/show.css">
</head>

<body>
{:TOP_BACK($show['tag'])}

<div class="tagshow">
  <div class="tagimg"><img src="{$show.imgsrc}" border="0"></div>
  <div class="tname font18">{$show.tag|default="标签不存在或已删除"}</div>
  <div class="tstxt font12">{$show.describe|default="没有添加任何描述..."}</div>
  
  <div class="nav">
  <a class="nli <if condition="$Think.get.type eq ''">select</if>" href="{:P(array('type'=>''))}">问答<span>({$show.count_question|default="0"})</span></a>
			<a class="nli <if condition="$Think.get.type eq '2'">select</if>" href="{:P(array('type'=>'2'))}">文章<span>({$show.count_article|default="0"})</span></a>
			<a class="nli <if condition="$Think.get.type eq '3'">select</if>" href="{:P(array('type'=>'3'))}">讨论<span>({$show.count_bbs|default="0"})</span></a>
  </div>
  
  
</div>


<div class="uu_spacing"></div>


<div id="listData">

<!--问题 -->
<if condition="$Think.get.type eq ''">	
<include file="Question/ajax_question_list" />
</if>
<!--文章 -->
<if condition="$Think.get.type eq '2'">	
<include file="Article/ajax_article_list" />
</if>
<!--bbs -->
<if condition="$Think.get.type eq '3'">	
<include file="Bbs/ajax_bbs_list" />
</if>

 </div>



<include file="public:foot" />
<include file="public:photoswipe" />

<script>
 	  <if condition="$Think.get.type eq ''">	
      var loadurl = "{:query_url('Question/ajax_question_list',array('p'=>2))}";
	  </if>
	   <if condition="$Think.get.type eq '2'">	
      var loadurl = "{:query_url('article/ajax_article_list',array('p'=>2))}";
	  </if>
	   <if condition="$Think.get.type eq '3'">	
      var loadurl = "{:query_url('bbs/ajax_bbs_list',array('p'=>2))}";
	  </if>
      $('#listData').dropload({
          scrollArea : window,
          loadDownFn : function(me){
		  $.getJSON(loadurl, function (result) {
				  if (result.code === 0) {
					  me.lock();
					  me.noData();
					  me.resetload();
					  return;
				  }
				  else if (result.code === 1) {
						  var ret = result.data;
						  $("#listData .dropload-down").before(ret.html);
						  loadurl = ret.loadurl;
						  me.resetload();
				  }else{
					alert('Ajax Error!');
					me.resetload();
				  }
              });
          }
      });
      
      
</script>

</body>
</html>